package util;

import java.util.ArrayList;
import java.util.List;
import javax.swing.table.AbstractTableModel;

public class ModeloTablaObraSocial extends AbstractTableModel {
	private static final long serialVersionUID = 1L;
	@SuppressWarnings("unused")
	private int row, column=1;
	private List<String> tabla;
	
	public ModeloTablaObraSocial (){
		row=0;
		tabla = new ArrayList<String>();
	}
	
	public int getRowCount() {
		return tabla.size();
	}
	
	public int getColumnCount() {
		return column;
	}
	
	public String getValueAt(int rowIndex, int columnIndex) {
		return tabla.get(rowIndex).toString();
	}
	
	public void setValueAt(int rowIndex, int columnIndex, String value) {
		tabla.get(rowIndex).concat(value);
	}
}